package com.permission_server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @TableName sys_user_role
 */
@TableName(value = "sys_user_role")
@Data
@ApiModel(value = "com.permission_server.entity.SysUserRoleEntity", description = "用户角色")
public class SysUserRoleEntity implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID", dataType = "String")
    private String id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户ID", dataType = "String")
    private String userId;

    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    @ApiModelProperty(value = "角色ID", dataType = "String")
    private String roleId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
